import App from "../App";
import Cecr from "../pages/cecr";
import Deail from "../pages/deail";
import List from "../pages/List";
import Order from "../pages/order";
import Success from "../pages/success";
import Xz from "../pages/xz";
import Zf from "../pages/zf";
import {createBrowserRouter} from 'react-router-dom'

export const router = createBrowserRouter([
    {
        path: "/",
        element: <App></App>,
        children: [
            {
                index: true,
                element: <List></List>
            },
            {
                path: "list",
                element: <List></List>
            }
        ]
    },
    {
        path: "/deail",
        element: <Deail></Deail>
    },
    {
        path: "/cecr",
        element: <Cecr></Cecr>
    },
    {
        path: "/xz",
        element: <Xz></Xz>
    },
    {
        path: "/order",
        element: <Order></Order>
    },
    {
        path: "/zf",
        element: <Zf></Zf>
    },
    {
        path: "/success",
        element: <Success></Success>
    },
]);